<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/8/15
 * Time: 14:47
 */

namespace app\controllers;

use Phalcon\Mvc\Controller;

class BaseController extends Controller
{
    public function onConstruct()
    {
        if (!$this->session->get('user')) {
            $this->response->redirect('/site/login');
            return false;
        }
    }
}